package com.ccb.sc.common.modules.ad.entity;

import com.ccb.sc.common.modules.ad.enums.AdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ccb.sc.common.entity.BaseEntity;
import com.ccb.sc.common.enums.ValidStatus;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 广告
 * </p>
 *
 * @author ken
 * @since 2020-10-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_ad")
public class Ad extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     * 广告位id
     */
    @TableField("ad_position_id")
    private Long adPositionId;

    /**
     * 开始时间
     */
    @TableField("start_time")
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    @TableField("end_time")
    private LocalDateTime endTime;

    /**
     * 图片
     */
    @TableField("picture")
    private String picture;

    /**
     * 标题
     */
    @TableField("title")
    private String title;

    /**
     * 广告类型
     */
    @TableField("type")
    private AdType type;

    /**
     * 关联id
     */
    @TableField("associate")
    private String associate;

    /**
     * 排序号
     */
    @TableField("orders")
    private Integer orders;

    @TableField("status")
    private ValidStatus status;

}
